# @shuaige : 陈世玉
# @name :Data_analysis.py
# @time :2024/12/5 22:22
# /html/body/div[2]/div[3]/div[2]/div[4]/div[3]/p[1]
from selenium import webdriver
path='chromedriver.exe'
browser=webdriver.Chrome(path)
url='https://bingli.iiyi.com/###'
browser.get(url)
a=browser.find_elements_by_xpath('//div[@class="li"]/a')
for i in a:
    print(i.get_attribute('href'))
    driver=webdriver.Chrome(path)
    driver.get(i.get_attribute('href'))
    new = driver.find_element_by_xpath('//div[@class="case_study position2"]/div[3]')
    print(new.text)
    driver.quit()

# print(a)
# new =browser.find_element_by_xpath('/html/body/div[2]/div[3]/div[2]/div[4]/div[3]/p[1]').text
# print(new.text)
browser.quit()